/*#include <stdio.h>
int main(void)
  {
      int a;
      scanf("%d",&a); 
      if(a = 5)
          printf("*****");
      else 
          printf("#####");
      return 0;
  }
#include <stdio.h>
#include <math.h>
int main()
{
	double interest,m,r;
   int y;
	scanf("%lf %lf %d",&m,&r,&y);
	interest=m*pow((1+r),y)-m;
	printf("interest=%.2lf\n",interest);
	return 0;
}*/
#include <stdio.h>
int main()
{
    int x,y;
    scanf("%d,&x");
    y=x*x;
    printf("%d=%d*%d\n",y,x,x);
    printf("%d*%d=%d\n",x,x,y);
    return 0;
}
